package com.cy.mall.dao.mapper.enter;

import com.cy.mall.model.domain.enter.EnterCorporateProfit;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

/**
 * @Description EnterCorporateProfitMapper
 * @Author tanyilin
 * @Date 2019/3/20 11:37
 */
@Mapper
public interface EnterCorporateProfitMapper extends BaseMapper<EnterCorporateProfit> {


    /**
     * 根据 enterId 删除全部信息
     * @param enterId
     * @return void
     */
    void deleteAllByEnterId(@Param("enterId") Long enterId);

    /**
     * 查询企业近三年的利润报表信息
     * @param enterId
     * @param recent3YearList
     * @return java.util.List<com.cy.mall.model.domain.enter.EnterCorporateProfit>
     */
    List<EnterCorporateProfit> selectEnterCorporateProfitByEnterId(@Param("enterId") Long enterId, @Param("recent3YearList") List<Integer> recent3YearList);
}
